package com.heima.mapper;

import com.heima.pojo.dto.PartnerQueryDTO;
import com.heima.pojo.entity.TbRegion;
import com.heima.pojo.entity.TbSku;
import com.heima.pojo.vo.RegionVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RegionMapper {

    List<RegionVO> search(PartnerQueryDTO partnerQueryDTO);

    Boolean saveRegion(TbRegion tbRegion);

    Boolean updateRegion(String regionId, TbRegion tbRegion);

    @Delete("delete from tb_region where id = #{regionId}")
    Boolean deleteRegion(String regionId);
}
